<h1>Listing companies</h1>

<p>
	<%= link_to 'New company', new_company_path %>
</p>
<table>
  <tr>
    <th>Name</th>
	<th>Action</th>
  </tr>

<% for company in @companies %>
  <tr class="<%= cycle('even', 'odd') %>">
    <td><%=h company.name %></td>
    <td>
    	<%= link_to image_tag("view.gif"), company %>
		<%= link_to image_tag("edit.gif"), edit_company_path(company) %>
		<%= link_to image_tag("delete.gif"), company, :confirm => 'Are you sure?', :method => :delete %>
	</td>
  </tr>
<% end %>
</table>